package org.csu.jpetstore_users_backend_pj.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("carts")
public class Cart {
    @TableId(value="userid")
    private String userid;
    @TableField(value = "cartinfo")
    private String cartinfo;

    public Cart(String userid, String cartinfo) {
        this.userid = userid;
        this.cartinfo = cartinfo;
    }
}
